Skip to content

Remove the std workspace patch for compiler-builtins #145622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2025

Conversation

tgross35
Copy link
Contributor

All dependencies of std have dropped the crates.io dependency on compiler-builtins, so this patch is no longer needed.

Closes: RUST-142265

All dependencies of `std` have dropped the crates.io dependency on
`compiler-builtins`, so this patch is no longer needed.

Closes: RUST-142265
@rustbot
Copy link
Collaborator

rustbot commented Aug 19, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 19, 2025
@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 20, 2025

📌 Commit 988092e has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 20, 2025
bors added a commit that referenced this pull request Aug 20, 2025
Rollup of 13 pull requests

Successful merges:

 - #139357 (Fix parameter order for `_by()` variants of `min` / `max`/ `minmax` in `std::cmp`)
 - #140314 (Rustdoc: typecheck scrape-examples.js)
 - #140794 (mention lint group in default level lint note)
 - #145006 (Clarify EOF handling for `BufRead::skip_until`)
 - #145252 (Demote x86_64-apple-darwin to Tier 2 with host tools)
 - #145359 (Fix bug where `rustdoc-js` tester would not pick the right `search.js` file if there is more than one)
 - #145381 (Implement feature `int_lowest_highest_one` for integer and NonZero types)
 - #145417 (std_detect: RISC-V platform guide documentation)
 - #145531 (Add runtime detection for APX-F and AVX10)
 - #145619 (`std_detect`: Use `rustc-std-workspace-*` to pull in `compiler-builtins`)
 - #145622 (Remove the std workspace patch for `compiler-builtins`)
 - #145623 (Pretty print the name of an future from calling async closure)
 - #145626 (add a fallback implementation for the `prefetch_*` intrinsics )

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6e65229 into rust-lang:master Aug 20, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 20, 2025
rust-timer added a commit that referenced this pull request Aug 20, 2025
Rollup merge of #145622 - tgross35:remove-builtins-patch, r=Mark-Simulacrum

Remove the std workspace patch for `compiler-builtins`

All dependencies of `std` have dropped the crates.io dependency on `compiler-builtins`, so this patch is no longer needed.

Closes: RUST-142265
@lqd
Copy link
Member

lqd commented Aug 20, 2025

Closes: RUST-142265

This looks like a JIRA link or something, so GH didn't autoclose the issue :3

@Kobzol
Copy link
Member

Kobzol commented Aug 20, 2025

Huh, I thought that r-l/r was configured to use this kind of links (it is used to avoid spamming issues with links from commits).

@tgross35 tgross35 deleted the remove-builtins-patch branch August 20, 2025 10:00
@tgross35
Copy link
Contributor Author

Argh, I’ve switched to that style link to shut triagebot up. I guess we get both autoclose and backlinks or neither of them.

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Aug 21, 2025
Rollup of 13 pull requests

Successful merges:

 - rust-lang/rust#139357 (Fix parameter order for `_by()` variants of `min` / `max`/ `minmax` in `std::cmp`)
 - rust-lang/rust#140314 (Rustdoc: typecheck scrape-examples.js)
 - rust-lang/rust#140794 (mention lint group in default level lint note)
 - rust-lang/rust#145006 (Clarify EOF handling for `BufRead::skip_until`)
 - rust-lang/rust#145252 (Demote x86_64-apple-darwin to Tier 2 with host tools)
 - rust-lang/rust#145359 (Fix bug where `rustdoc-js` tester would not pick the right `search.js` file if there is more than one)
 - rust-lang/rust#145381 (Implement feature `int_lowest_highest_one` for integer and NonZero types)
 - rust-lang/rust#145417 (std_detect: RISC-V platform guide documentation)
 - rust-lang/rust#145531 (Add runtime detection for APX-F and AVX10)
 - rust-lang/rust#145619 (`std_detect`: Use `rustc-std-workspace-*` to pull in `compiler-builtins`)
 - rust-lang/rust#145622 (Remove the std workspace patch for `compiler-builtins`)
 - rust-lang/rust#145623 (Pretty print the name of an future from calling async closure)
 - rust-lang/rust#145626 (add a fallback implementation for the `prefetch_*` intrinsics )

r? `@ghost`
`@rustbot` modify labels: rollup
@RalfJung RalfJung mentioned this pull request Aug 21, 2025
@RalfJung
Copy link
Member

RalfJung commented Aug 21, 2025

So now we have https://github.com/rust-lang/rust/tree/master/library/compiler-builtins but that's not actually used by the sysroot build? That seems like it could be really confusing.

EDIT: Ah no there is a path dependency... I don't think I understand how this patch worked.^^ This seems to just overwrite a path dependency with... itself?

@Kobzol
Copy link
Member

Kobzol commented Aug 21, 2025

Some other dependencies of stdlib depended on compiler-builts from crates.io (IIRC), the patch was used to redirect those indirect dependencies to the in-tree version.

@tgross35
Copy link
Contributor Author

tgross35 commented Aug 21, 2025

I just commented on rust-lang/miri#4534 but yeah, the patch was only needed while std had dependencies that used compiler-builtins via crates.io. This used to be required but since rustc-std-workspace-core now pulls in the in-tree compiler-builtins, the patch was needed to make sure we don't wind up with both in-tree and crates.io builtins.

The patch was just a migration path to give std's depsendencies a chance to delete their dep on compiler-builtins . Now that everything we use has had a chance to drop it (#142265), there isn't anything to redirect so the patch shouldn't be needed anymore - hence this PR.

I don't know what would have caused the Miri failure though, unless an old depsendencies was getting used somewhere. I thought Cargo.toml was updated for everything, but maybe it came via an indirect dep that we don't set a minimum version for?

Edit: nevermind, Ralf cleared that up rust-lang/miri#4534 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants